from django.db import models

# Create your models here.
class BasicIntro(models.Model):
    title = models.CharField(max_length=50, null=False)
    introduction = models.TextField(null=False)

class StructureIntro(models.Model):
    title = models.CharField(max_length=50, null=False)
    introduction = models.TextField(null=False)

class FieldTypeIntro(models.Model):
    field_type = models.CharField(max_length=50, null=False)
    introduction = models.TextField(null=False)

class TableDemo(models.Model):
    integer = models.IntegerField(null=True)
    boolean = models.BooleanField(null=True)
    date = models.DateField(null=True)
    char = models.CharField(max_length=20, null=True)
    text = models.TextField(max_length=100, null=True)

class Student(models.Model):
    stu_id = models.CharField(max_length=11, null=False)
    name = models.CharField(max_length=20, null=False)
    gender = models.BooleanField(null=False)
    major = models.CharField(max_length=50, null=True)